<?php
class BuyLogService {
	
	public function addLog($orderid, $username, $event) {
		$params = array ('orderid' => $orderid, 'username' => $username, 'event' => $event, 'add_time' => time () );
		return BuyLogModel::instance ()->addLog ( $params );
	}
	
	public function getLogByOrderId($orderid) {
		return BuyLogModel::instance ()->getLogByOrderId ( $orderid );
	}
}